package edu.scnu.fans.fingertip.order.input;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderListInput {

    @ApiModelProperty("页码")
    @NotNull(message = "不能为空")
    @Min(value = 1, message = "页码最小为1")
    private Integer pageNum;

    @NotNull(message = "不能为空")
    @Max(value = 50, message = "每页最大50个")
    @Min(value = 1, message = "每页最少1个")
    @ApiModelProperty("每页数量")
    private Integer pageSize;

    @ApiModelProperty("订单状态 0:未支付; 1:已支付; 2:已发货; 3:已完成; 4:退款（选填）")
    private Integer orderStatus;
}
